export const validateFileValidator = (rule, value) => {
    if (value && value.length) {
        const res = value.find((item) => item.status !== 'delete' && item.connectType === rule.connectType);
        return res ? Promise.resolve() : Promise.reject('文档不能为空');
    } else {
        return Promise.reject('文档不能为空');
    }
};